package com.cg.config;

import com.cg.service.PayAlibabaServiceImpl;
import com.cg.service.PayService;
import com.cg.service.PayWxServiceImpl;
import org.springframework.context.annotation.Bean;

/**
 * @ClassName PayInitConfig
 * @Description TODO
 * @Author CG
 * @Date 2024/1/15 11:08
 **/
public class PayInitConfig {
    @Bean
    public PayService payService(){
        return new PayAlibabaServiceImpl();
    }

    @Bean
    public PayService payWxService(){
        return new PayWxServiceImpl();
    }
}
